﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using Entities.System;
using CommonLib;

public partial class Page_editPwd :  Base.BasePage 
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        User user = (User)HttpContext.Current.Session["user"];
        if (user != null)
        {
            User uEdit = new User();
            uEdit.USER_KEY = user.USER_KEY;
            uEdit.USER_NAME = user.USER_NAME;
            uEdit.PASSWORD = CommonLib.EncryptionLib.GetDecryptor(user.PASSWORD, true);
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "c", string.Format("var currUser={0};", uEdit.ToJson()), true);
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }
}